<div class="pm_modal small {{ctrl.class}}" role="dialog">

    <form class="modal-dialog" name="filterAddressForm" ng-submit="filterAddressForm.emailAddress.$valid && ctrl.create()" novalidate>
        <button
            type="button"
            ng-click="ctrl.cancel()"
            aria-hidden="true"
            title-translate="Close"
            title-translate-context="Action"
            class="fa fa-times close"></button>

        <div class="modal-content">
            <header class="modal-header">
                <h3 class="modal-title" ng-if="ctrl.type === 'whitelist'" translate translate-context="Title">Add to Whitelist</h3>
                <h3 class="modal-title" ng-if="ctrl.type === 'blacklist'" translate translate-context="Title">Add to Blacklist</h3>
            </header>
            <div class="modal-body pm_form ng-message-wrapper">
                <input
                    type="email"
                    ng-model="ctrl.filter.Email"
                    id="emailAddress"
                    name="emailAddress"
                    placeholder-translate-context="Placeholder"
                    placeholder-translate="Email Address">

                <div ng-messages="filterAddressForm.emailAddress.$error" role="alert">
                    <div class="ng-messages-errors">
                        <p ng-message="email" class="text-red" translate-context="Error" translate>Invalid email</p>
                    </div>
                </div>
            </div>
        </div>

        <footer class="modal-footer">
            <button
                type="button"
                class="pm_button modal-footer-button disabled-if-network-activity"
                ng-click="ctrl.cancel()"
                translate translate-context="Action">Cancel</button>
            <button
                class="pm_button primary modal-footer-button disabled-if-network-activity"
                translate
                translate-context="Action">Save</button>
        </footer>
    </form>
    <div class="modal-overlay"></div>
</div>
